"""
Task 2

Exclusive common numbers.

Generate 2 lists with the length of 10 with random integers from 1 to 10, and make a third list containing the common
integers between the 2 initial lists without any duplicates.

Constraints: use only while loop and random module to generate numbers
"""
from random import randint
LENGTH = 10
list_1 = []
list_2 = []
list_3 = []
for i in range(LENGTH):
    list_1.append(randint(1, LENGTH))
    list_2.append(randint(1, LENGTH))
print(list_1)
print(list_2)
for item in list_1:
    if item in list_2:
        list_3.append(item)
print(list_3)
print(f"The common numbers list is: {list(set(list_3))}")
